package com.facishare.open.mongo.dao;

import com.facishare.open.mongo.model.User;

import java.util.List;

/**
 * Created by linchf on 2016/8/23.
 */
public interface UserDao {
    List<User> findList(int skip, int limit);

    List<User> findListByUsername(String username);

    User findOne(String id);

    User findOneByUsername(String username);

    void insert(User entity);

    void update(User entity);

    void delete(User entity);

}
